package pers.karl.design.basic.strategy.impl;

import pers.karl.design.basic.strategy.PriceStrategy;

import java.math.BigDecimal;

/**
 * 默认策略：不做任何改变
 * @author karl
 */
public class DefaultStrategy implements PriceStrategy {

    public DefaultStrategy() {
        System.out.println("默认策略实例化");
    }

    @Override
    public BigDecimal calcPrice(BigDecimal price) {
        return price;
    }

}
